package com.cgsd.heyu.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xiaoxing
 * Description 用户积分信息
 * CreateData: 2020/11/23
 */
public class FlowerInfoEntity implements Parcelable {
    /**
     * 累计积分
     */
    public String totalAmount;
    /**
     * 可利用积分数
     */
    public String usableAmount;
    /**
     * 捐献积分数
     */
    public String donateAmount;
    /**
     * 今日收获积分数
     */
    public String dayFlowerAmount;
    /**
     * 拍友号
     */
    public String memberNo;
    /**
     * 昵称
     */
    public String nickName;
    /**
     * 用户图像地址
     */
    public String headImgUrl;
    /**
     * 性别（0默认，1.男，2女）
     */
    public String gender;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.totalAmount);
        dest.writeString(this.usableAmount);
        dest.writeString(this.donateAmount);
        dest.writeString(this.dayFlowerAmount);
        dest.writeString(this.memberNo);
        dest.writeString(this.nickName);
        dest.writeString(this.headImgUrl);
        dest.writeString(this.gender);
    }

    public FlowerInfoEntity() {
    }

    protected FlowerInfoEntity(Parcel in) {
        this.totalAmount = in.readString();
        this.usableAmount = in.readString();
        this.donateAmount = in.readString();
        this.dayFlowerAmount = in.readString();
        this.memberNo = in.readString();
        this.nickName = in.readString();
        this.headImgUrl = in.readString();
        this.gender = in.readString();
    }

    public static final Parcelable.Creator<FlowerInfoEntity> CREATOR = new Parcelable.Creator<FlowerInfoEntity>() {
        @Override
        public FlowerInfoEntity createFromParcel(Parcel source) {
            return new FlowerInfoEntity(source);
        }

        @Override
        public FlowerInfoEntity[] newArray(int size) {
            return new FlowerInfoEntity[size];
        }
    };
}
